home *** CD-ROM | disk | FTP | other *** search
/ Champak 132 (Alt) / Vol 132.iso / games / hewitt.swf / scripts / DefineButton2_1963 / BUTTONCONDACTION on(press).as
Encoding:
Text File  |  2011-06-09  |  1.0 KB  |  36 lines

  1. on(press){
  2.    if(_root.inven._currentframe == 1)
  3.    {
  4.       if(_root.coat == 0)
  5.       {
  6.          if(_root.micon._currentframe == 2)
  7.          {
  8.             _root.coatlook = 1;
  9.             _root.next_dis1 = 2;
  10.             _root.next_txt1 = "It seems to be a coat rack with a trench coat that looks very much like Principle Hoggard\'s.";
  11.          }
  12.          if(_root.micon._currentframe == 1 && _root.range == true && _root.coatlook == 1)
  13.          {
  14.             _root.coat = 1;
  15.             _root.sfx.gotoAndStop(3);
  16.             _root.take = 57;
  17.             _root.next_dis1 = 2;
  18.             _root.next_txt1 = "This should be very handy!";
  19.          }
  20.       }
  21.       else
  22.       {
  23.          if(_root.micon._currentframe == 2)
  24.          {
  25.             _root.next_dis1 = 2;
  26.             _root.next_txt1 = "It\'s a boring coat rack.";
  27.          }
  28.          if(_root.micon._currentframe == 1 && _root.range == true)
  29.          {
  30.             _root.next_dis1 = 2;
  31.             _root.next_txt1 = "I don\'t need a coat rack.";
  32.          }
  33.       }
  34.    }
  35. }
  36.